package mock.dao;

import mock.dto.CardDTO;

public interface CardDAO {
	
	/**
	 * input: cardNo
	 * output: CardDTO
	 */
	public CardDTO getCardByCardNo(String cardNo);
	
	/**
	 * input: cardNo, newAttempt
	 * output: attempt++ in database
	 */
	public void setAttempt(String cardNo, int newAttempt);
	
	/**
	 * input: cardNo, status
	 * output: update status in database
	 */
	public void setStatus(String cardNo, String status);
	
	/**
	 * thay doi PIN moi cho card
	 */
	public boolean setPIN(String cardNo, String newPIN);
	
}
